package com.feng.financial.common.exception;

import java.io.Serializable;

/**
 * @author Administrator
 */
public class MethodArgumentNotValidVo implements Serializable {

    private String objectName;
    private String defaultMessage;
    private String field;

    public MethodArgumentNotValidVo() {}

    public MethodArgumentNotValidVo(String objectName, String defaultMessage, String field) {
        this.objectName = objectName;
        this.defaultMessage = defaultMessage;
        this.field = field;
    }

    public String getObjectName() {
        return objectName;
    }

    public void setObjectName(String objectName) {
        this.objectName = objectName;
    }

    public String getDefaultMessage() {
        return defaultMessage;
    }

    public void setDefaultMessage(String defaultMessage) {
        this.defaultMessage = defaultMessage;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    @Override
    public String toString() {
        return "" +
                "objectName='" + objectName + '\'' +
                ", defaultMessage='" + defaultMessage + '\'' +
                ", field='" + field;
    }
}
